﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/FrontSite.Master" Inherits="System.Web.Mvc.ViewPage" Title="前台首页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    油田月曲线
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <link href="../../Scripts/Ext4_2/resources/css/ext-all.css" rel="stylesheet" />
    <script src="../../Scripts/Ext4_2/resources/ext-all.js"></script>
    <script src="../../Curves/OilFieldMonthCurve.js"></script>
    <script src="../../Curves/Line.js"></script>
    <script src="../../Content/My97DatePicker/WdatePicker.js"></script>

    <script>
        //设置当前导航栏的样式为“已点击”
        jQuery(document).ready(function ($) {
            $('#lnkbtnOilFieldMonthCurve').css("color", "red");
        })

        //function queryBtn_Click() {
        //    location = 'CYJMonthCurve';
        //}

        //点击“查询”按钮后进行刷新
        $(document).ready(function () {
            $("#queryBtn").click(function () {
                //得到参数
                var WorkZoneSelect = $('#WorkZoneSelect option:selected').val();
                var productdate_box = $("#MainContentPlaceHolder_productdate_box").val();
                //更新store1
                store1.load({
                    params: { WorkZoneSelect: WorkZoneSelect, productdate_box: productdate_box },
                    url: 'OilFieldMonthCurveQuery',
                    method: 'POST',
                    success: function (sesponseTest) {
                        alert(sesponseTest);
                    }
                });
            });
        });

    </script>

    <script type="text/javascript">
        //刷新“btnLogin”为“btnLogout”
        $(document).ready(function () {
            document.getElementById("btnLogin").text = "退出";
        });
    </script>

    <h1 style="text-align: center">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;油 田 月 曲 线</h1>
    <br />
    <p class="x-btn-inner-center">
         &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;油田：<select id="WorkZoneSelect">
            <option>大港油田</option>
            <option>火烧山油田</option>
             <option>沙南油田</option>
        </select>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 生产年月：
        <input id="productdate_box" runat="server" class="Wdate" value="2014-09" onclick="WdatePicker({ dateFmt: 'yyyy-MM' })" type="text" style="width: 100px" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <input type="button" id="queryBtn" value="查询"" />
    </p>


    <div id="curveDiv" style="text-align: center">
    </div>
    <br />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>
